﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLLWeb
{
    public partial class qgzx_student_information : IBLL.Iqgzx_student_informationBLL
    {
        public MODEL.qgzx_student_information Login(string StudentNum, string Password)
        {
            //调用业务层方法 根据登陆名查询
            MODEL.qgzx_student_information user = base.GetListBy(p => p.StudentNum == StudentNum).Select(u => u.ToPOCO()).SingleOrDefault();
            //判断是否登陆成功
            if (user != null && user.password == Password)//Common.DataHelper.MD5(strPwd))
            {
                return user;
            }
            return null;
        }
    }
}
